import { Notification, NotificationConstructorOptions } from 'electron';
import { IFeidaoAiDesktopApp } from '../../interfaces';

export default function regist(fd: IFeidaoAiDesktopApp, notify: NotificationConstructorOptions, event: string) {
	const n = new Notification(notify);
	n.on('click', (e) => {
		fd.emit(event, e);
	});
	n.show();
}
